<?php get_header(); ?>
	<script type="text/javascript">
	    jQuery(document).ready(function($){
		$("#tabs").tabs();
	    });
	</script>

<?php get_sidebar(); ?>
    <div id="main-content">
    <div id="home-row1">
        <div id="slider-wrapper">
            <?php if (class_exists('Gallery')) { $Gallery = new Gallery(); $Gallery -> slideshow($output = true, $post_id = null); }; ?>
        </div>
        <div class="home-widget-wrapper">
            <?php dynamic_sidebar( 'main-widget-1' ); ?>
        </div>
    </div>


    <div id="home-row2">
        <div class="home-widget-wrapper">
            <?php dynamic_sidebar( 'main-widget-2' ); ?>
        </div>
        <div class="home-widget-wrapper">
            <h3 class="widget-title"><a target="_blank" href="http://www.zqhgzx.com/?cat=8">教学研讨</a></h3>
            <ul>
                <?php
                        global $post_cat8;
                        $myposts = get_posts('numberposts=6&offset=0&category=8');
                        foreach($myposts as $post) :
                        ?>
                <li  class="cat-post-item">
                    <a target="_blank" href="<?php the_permalink(); ?>">
                        <?php echo mb_strimwidth(get_the_title(),0,34,"…"); ?>
                    </a>
                    <span class="post-date"><?php the_time(get_option('date_format')); ?></span>
                </li>
                <?php endforeach; ?>
            </ul>
        </div>

        <div class="home-widget-wrapper">
            <h3 class="widget-title"><a target="_blank" href="http://www.zqhgzx.com/?cat=15">校园简介</a></h3>
            <ul>
                <?php
                        global $post_cat15;
                        $myposts = get_posts('numberposts=6&offset=0&category=15');
                        foreach($myposts as $post) :
                        ?>
                <li  class="cat-post-item">
                    <a target="_blank" href="<?php the_permalink(); ?>">
                        <?php echo mb_strimwidth(get_the_title(),0,34,"…"); ?>
                    </a>
                    <span class="post-date"><?php the_time(get_option('date_format')); ?></span>
                </li>
                <?php endforeach; ?>
            </ul>
        </div>

        <div class="home-widget-wrapper">
            <h3 class="widget-title"><a target="_blank" href="http://www.zqhgzx.com/?cat=9">数字学校</a></h3>
            <ul>
                <?php
                        global $post_cat9;
                        $myposts = get_posts('numberposts=6&offset=0&category=9');
                        foreach($myposts as $post) :
                        ?>
                <li  class="cat-post-item">
                    <a target="_blank" href="<?php the_permalink(); ?>">
                        <?php echo mb_strimwidth(get_the_title(),0,34,"…"); ?>
                    </a>
                    <span class="post-date"><?php the_time(get_option('date_format')); ?></span>
                </li>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
    <div id="home-row3">
        <div id="tabs">
            <ul>
                <li><a href="#teacher-zone">教师园地</a></li>
                <li><a href="#student-zone">学生园地</a></li>
                <li><a href="#parent-zone">家长园地</a></li>
            </ul>
           <?php dynamic_sidebar( 'main-widget-teacher-tab' ); ?>
	    <?php dynamic_sidebar( 'main-widget-student-tab' ); ?>
	    <?php dynamic_sidebar( 'main-widget-parent-tab' ); ?>
        </div>
    </div>

</div>
<?php get_footer(); ?>
